<template>
  <div class="vs-module-titles">
    <div class="vs-module-title">
      <label>{{ name }}</label>
      <div class="vs-module-title__right">
        <slot />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "VsModuleTitle",
  props: ["name"]
};
</script>

<style lang="less">
.vs-module-titles {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    bottom: -1px;
    border-top: 1px solid rgba(255, 255, 255, 1);
    width: 4px;
  }
  &::before {
    content: "";
    position: absolute;
    top: -1px;
    border-top: 1px solid rgba(255, 255, 255, 1);
    width: 4px;
  }
}
.vs-module-title {
  position: relative;
  height: 29px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.15);
    width: 100%;
    height: 29px;
  }
  > label {
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 1px;
    font-family: FZZDHJW--GB1-0;
  }
  &__right {
    right: 20px;
    z-index: 10;
  }
}
</style>
